using System.Collections.ObjectModel;
using System.Runtime.Serialization;

namespace Game.ExtensibleObjects
{
    [CollectionDataContract(Namespace = "game", ItemName = "Extension")]
    public class ExtensionCollection : Collection<string>
    {
        public ReadOnlyExtensionCollection GetReadOnly()
        {
            return new ReadOnlyExtensionCollection(this);
        }

        public void Add(IGameExtension e)
        {
            Add(e.Url);
        }
    }
}